package com.ecelin;

import com.ecelin.tools.CustomException;
import com.ecelin.tools.DbService;

/**
 * @author ecelin@ecelin.com
 */
public class MainApplication {
	public static void main(String[] args) {
		try {
			DbService.makeExcel();
		} catch (Exception e) {
			e.printStackTrace();
			StackTraceElement[] stackTrace = e.getStackTrace();
			StringBuilder sb = new StringBuilder(e.getMessage());
			sb.append("\r\n");
			for (StackTraceElement stackTraceElement : stackTrace) {
				sb.append(stackTraceElement).append("\r\n");
			}
			throw new CustomException(sb.toString());
		}
		System.out.println("执行完成!");
	}
}